<?php
class pages extends CI_Controller{
	function index(){
		$page='home';
//		if(!file_exists(APPPATH.'/views/pages/'.$page.'.php')){
//			show_404();
//		}
		$this->load->view('pages/home');
		$this->load->helper('url');
		//redirect('pages/view');
	}
	function view($page='home'){
//		if(!file_exists(APPPATH.'/views/pages/'.$page.'.php')){
//			show_404();
//		}
		
		$data['title']=$page;
		$data['content']='my lv';
		$this->load->view('common/header',$data);
		$this->load->view("pages/$page",$data);
		$this->load->view('common/footer',$data);
	}
}
